package cn.sykj.car.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 车主-车牌号关联关系表（一个车主可以对应多个车牌号）
 * </p>
 *
 * @author duanzis
 * @since 2021-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="CarCarNo对象", description="车主-车牌号关联关系表（一个车主可以对应多个车牌号）")
public class CarCarNo extends Model<CarCarNo> {

    private static final long serialVersionUID = 1L;

    private Integer id;

    @ApiModelProperty(value = "car_user.id")
    private Integer userId;

    @ApiModelProperty(value = "车牌号（如：辽+6位车牌号）")
    private String carNo;

    @ApiModelProperty(value = "删除标记：0-正常 1-删除")
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String CAR_NO = "car_no";

    public static final String DEL_FLAG = "del_flag";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
